package com.home.constants;

public class Consts {

	// RESERVATION TIMES
	public static final double[] RESERVATION_TIMERS = { 0.1, 2, 4, 16, 24 };

	// URLs

	public static final String URL_LIST_RESOURCE = "http://192.168.1.100:8080/RHMServer/resources/getresourcelist";
	public static final String URL_LIST_CATEGORIES = "http://192.168.1.100:8080/RHMServer/resources/getresourcecategories";
	public static final String URL_START_RESOURCE = "http://192.168.1.100:8080/RHMServer/resources/activate";
	public static final String URL_RESOURCE_DETAILS = "http://192.168.1.100:8080/RHMServer/resources/resourcedetails";
	//Local resource states
	public static final int RESOURCE_ON_OWNED=2;
	public static final int RESOURCE_ON_NOT_OWNER=1;
	public static final int RESOURCE_OFF=0;
	//Activity result codes
	public static final int RESULT_REFRESH_REQUESTED=1;
	public static final int RESULT_NOTHING_TO_DO=0;
	
	
	// Http parameter names
	public static final String PARAM_SIGNATURE = "Signature";
	public static final String PARAM_MESSAGE = "json";
	// JSON key words
	public static final String MSG_REQUEST_RESOURCES = "MSG_REQUEST_RESOURCES";
	public static final String MSG_START_RESOURCE = "MSG_START_RESOURCE";
	// Response message codes
	public static final int RESPONSE_RESULT = 1;
	public static final int RESPONSE_CONFIRM = 2;
	public static final int RESPONSE_ERROR = -1;
	// Resouce states
	public static final int RESOURCE_ACTIVE = 0;
	public static final int RESOURCE_NOT_ACTIVE = 1;
	public static final int RESOUCE_NOT_AVAILABLE = -1;
	// Resouce ownership
	public static final int RESOURCE_OWNED = 0;
	public static final int RESOURCE_NOT_OWNER = 1;

	// Resource start modes
	public static final int RESOURCE_START = 0;
	public static final int RESOURCE_RESTART = 1;

	// JSON response message codes
	public static final String JSON_MESSAGE_CODE = "JSON_MESSAGE_CODE";

	public static final String NOTIFY_BEFORE = "NOTIFY_BEFORE";

	public static final String JSON_ARRAY = "JSON_ARRAY";
	// RESOURCE JSON KEYS
    public static final String CLIENT_TIME = "CLIENT_TIME";
	public static final String RESOURCE_ID = "RESOURCE_ID";
	public static final String RESOURCE_NAME = "RESOURCE_NAME";
	public static final String RESOURCE_DESCRIPTION = "RESOURCE_DESCRIPTION";
	public static final String RESOURCE_TEL = "RESOURCE_TEL";
	public static final String RESOURCE_STATE = "RESOURCE_STATE";
	public static final String RESOURCE_OWNERSHIP = "RESOURCE_OWNERSHIP";
	public static final String RESOURCE_ACTIVATION_LENGTH = "RESOURCE_ACTIVATION_LENGTH";
	public static final String RESOURCE_START_MODE = "RESOURCE_START_MODE";
	// RESOURCE CATEGORY JSON KEYS
	public static final String RCATEGORY_ID = "RCATEGORY_ID";
	public static final String RCATEGORY_NAME = "RCATEGORY_NAME";
	// ACTIVATE JSON ID
	public static final String RESERVATION_LENGTH = "RESERVATION_LENGTH";
	// USER ID
	public static final String USER_ID = "USER_ID";
	// SERVER STATE
	public static final String SERVER_TIME = "SERVER_TIME";
	//INTENT BUNDLE KEYS
	public static final String RESOURCE_RAW_DATA="RAW_DATA";

}
